package org.edu.modules.stu.jis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-指标基本表
 */
@TableName("ve_stu_idx")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="指标基本表对象", description="ve_stu_idx")
public class VeStuIdx extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "分值设置类型 0：无分值或一级默认分值，1：加分，2：减分,3：加减分值")
        private Integer type;

    @TableField
    @ApiModelProperty(value = "指标代码")
    @Length(max = 50)
        private String code;

    @TableField
    @ApiModelProperty(value = "指标名称")
    @Length(max = 255)
        private String name;

    @TableField
    @ApiModelProperty(value = "父级id")
        private Integer pid;

    @TableField
    @ApiModelProperty(value = "规则说明")
    @Length(max = 255)
        private String description;

    @TableField
    @ApiModelProperty(value = "状态（0：启用，1:禁用）")
        private Integer status;

    @TableField
    @ApiModelProperty(value = "路径")
    @Length(max = 200)
        private String path;

    @TableField
    @ApiModelProperty(value = "排序")
        private Integer listSort;
}
